﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YunShop_WebAPI.Model
{
    public class WeiDianPushOrderModel
    {
        /// <summary>
        /// 
        /// </summary>
        public int aesKeyVersion { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Message message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int shopId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }

        public class Buyer_info
        {
            /// <summary>
            /// 
            /// </summary>
            public string name { get; set; }
        }

        public class Refund_info
        {
            /// <summary>
            /// 
            /// </summary>
            public string refund_status { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string item_id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string item_sku_id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string refund_kind { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string refund_fee { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string refund_item_fee { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string can_refund { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string refund_express_fee { get; set; }
        }
                
        public class Message
        {
            /// <summary>
            /// 
            /// </summary>
            public string group_status { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string is_wtt_order { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string express_fee { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int argue_flag { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string is_wei_order { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string express { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string express_no { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string total { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string seller_name { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string status_ori { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string is_over_sold { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int supplier_seller_id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public decimal price { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string refund_status_ori { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public decimal original_total_price { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string last_income { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string order_type { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string seller_id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public decimal quantity { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string confirm_expire { get; set; }
            /// <summary>
            /// 已完成
            /// </summary>
            public string status_desc { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public Buyer_info buyer_info { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string f_seller_id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int is_close { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string is_cpn_order { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public DateTime finish_time { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public DateTime pay_time { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string express_fee_num { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string express_note { get; set; }
            /// <summary>
            /// 交易资金担保服务
            /// </summary>
            public string order_type_desc { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public DateTime add_time { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<Items> items { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string order_id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string express_type { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string status { get; set; }

            public class Items
            {
                /// <summary>
                /// 
                /// </summary>
                public string sku_merchant_code { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public string img { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public string merchant_code { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public decimal quantity { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public string total_price { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public string item_id { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public int is_delivered { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public string deliver_id { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public Refund_info refund_info { get; set; }
                /// <summary>
                /// 农夫山泉东方树叶青柑普洱900ml单瓶
                /// </summary>
                public string item_name { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public string sku_id { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public long sub_order_id { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public string url { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public string sku_title { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public decimal price { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public string bar_code { get; set; }
                /// <summary>
                /// 已完成
                /// </summary>
                public string deliver_status_desc { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public long id { get; set; }
                /// <summary>
                /// 
                /// </summary>
                public int can_deliver { get; set; }
            }

        }

    }
}
